<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>化学方程式配平器演示</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        
        .container {
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.15);
            padding: 40px;
            max-width: 800px;
            width: 100%;
            text-align: center;
        }
        
        .header {
            margin-bottom: 40px;
        }
        
        .logo {
            font-size: 60px;
            margin-bottom: 20px;
        }
        
        .title {
            font-size: 32px;
            font-weight: bold;
            color: #2c3e50;
            margin-bottom: 10px;
        }
        
        .subtitle {
            font-size: 18px;
            color: #7f8c8d;
            margin-bottom: 30px;
        }
        
        .features {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            margin: 40px 0;
        }
        
        .feature {
            padding: 30px 20px;
            background: #f8f9fa;
            border-radius: 15px;
            transition: transform 0.3s ease;
        }
        
        .feature:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        
        .feature-icon {
            font-size: 40px;
            margin-bottom: 15px;
        }
        
        .feature-title {
            font-size: 20px;
            font-weight: bold;
            color: #2c3e50;
            margin-bottom: 10px;
        }
        
        .feature-desc {
            color: #666;
            line-height: 1.6;
        }
        
        .demo-section {
            margin: 50px 0;
            padding: 30px;
            background: #e8f5e8;
            border-radius: 15px;
        }
        
        .demo-title {
            font-size: 24px;
            font-weight: bold;
            color: #2c3e50;
            margin-bottom: 20px;
        }
        
        .equation-demo {
            font-family: 'Courier New', monospace;
            font-size: 18px;
            margin: 15px 0;
            padding: 15px;
            background: white;
            border-radius: 8px;
            border-left: 4px solid #4CAF50;
        }
        
        .before {
            color: #e74c3c;
        }
        
        .after {
            color: #27ae60;
            font-weight: bold;
        }
        
        .tech-stack {
            margin: 40px 0;
        }
        
        .tech-title {
            font-size: 24px;
            font-weight: bold;
            color: #2c3e50;
            margin-bottom: 20px;
        }
        
        .tech-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            justify-content: center;
        }
        
        .tech-tag {
            padding: 8px 16px;
            background: #3498db;
            color: white;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 500;
        }
        
        .cta {
            margin-top: 50px;
        }
        
        .cta-button {
            display: inline-block;
            padding: 15px 30px;
            background: #4CAF50;
            color: white;
            text-decoration: none;
            border-radius: 25px;
            font-weight: bold;
            font-size: 18px;
            transition: all 0.3s ease;
            margin: 0 10px;
        }
        
        .cta-button:hover {
            background: #45a049;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
        }
        
        .cta-button.secondary {
            background: transparent;
            border: 2px solid #4CAF50;
            color: #4CAF50;
        }
        
        .cta-button.secondary:hover {
            background: #4CAF50;
            color: white;
        }
        
        @media (max-width: 768px) {
            .container {
                padding: 30px 20px;
            }
            
            .title {
                font-size: 28px;
            }
            
            .features {
                grid-template-columns: 1fr;
            }
            
            .equation-demo {
                font-size: 16px;
            }
            
            .tech-tags {
                justify-content: flex-start;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <div class="logo">⚗️</div>
            <h1 class="title">化学方程式配平器</h1>
            <p class="subtitle">将 C++ 化学计算引擎完美移植到 UniApp 跨平台应用</p>
        </div>
        
        <div class="features">
            <div class="feature">
                <div class="feature-icon">🧮</div>
                <h3 class="feature-title">智能配平</h3>
                <p class="feature-desc">采用递归试错算法，自动计算化学方程式的精确配平系数</p>
            </div>
            
            <div class="feature">
                <div class="feature-icon">🔬</div>
                <h3 class="feature-title">复杂分子式</h3>
                <p class="feature-desc">支持 Fe2(SO4)3 等复杂分子式，完整的化学对象模型</p>
            </div>
            
            <div class="feature">
                <div class="feature-icon">📱</div>
                <h3 class="feature-title">跨平台支持</h3>
                <p class="feature-desc">一套代码，运行在 H5、小程序、iOS、Android 多个平台</p>
            </div>
            
            <div class="feature">
                <div class="feature-icon">⚡</div>
                <h3 class="feature-title">实时验证</h3>
                <p class="feature-desc">配平后立即显示元素平衡验证，确保结果准确无误</p>
            </div>
        </div>
        
        <div class="demo-section">
            <h2 class="demo-title">配平演示</h2>
            
            <div class="equation-demo">
                <div class="before">输入: Fe2O3 + H2SO4 = Fe2(SO4)3 + H2O</div>
                <div>↓ 智能配平处理</div>
                <div class="after">结果: Fe2O3 + 3H2SO4 = Fe2(SO4)3 + 3H2O</div>
            </div>
            
            <div class="equation-demo">
                <div class="before">输入: C2H6 + O2 = CO2 + H2O</div>
                <div>↓ 智能配平处理</div>
                <div class="after">结果: 2C2H6 + 7O2 = 4CO2 + 6H2O</div>
            </div>
        </div>
        
        <div class="tech-stack">
            <h2 class="tech-title">技术栈</h2>
            <div class="tech-tags">
                <span class="tech-tag">UniApp</span>
                <span class="tech-tag">Vue 3</span>
                <span class="tech-tag">TypeScript</span>
                <span class="tech-tag">Vite</span>
                <span class="tech-tag">SCSS</span>
                <span class="tech-tag">算法移植</span>
            </div>
        </div>
        
        <div class="cta">
            <a href="#" class="cta-button" onclick="alert('请在项目根目录运行 npm run dev:h5 启动开发服务器')">
                立即体验
            </a>
            <a href="README.md" class="cta-button secondary">
                查看文档
            </a>
        </div>
    </div>
    
    <script>
        // 添加一些交互动画
        document.addEventListener('DOMContentLoaded', function() {
            const features = document.querySelectorAll('.feature');
            
            features.forEach((feature, index) => {
                feature.style.opacity = '0';
                feature.style.transform = 'translateY(30px)';
                
                setTimeout(() => {
                    feature.style.transition = 'all 0.6s ease';
                    feature.style.opacity = '1';
                    feature.style.transform = 'translateY(0)';
                }, index * 200);
            });
        });
    </script>
</body>
</html>